/*LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
【平    台】龙邱i.MX RT1052核心板-智能车板
【编    写】CHIUSIR
【E-mail  】chiusir@163.com
【软件版本】V1.0
【最后更新】2018年2月1日
【相关信息参考下列地址】
【网    站】http://www.lqist.cn
【淘宝店铺】http://shop36265907.taobao.com
------------------------------------------------
【dev.env.】IAR8.20.1及以上版本
【Target 】 i.MX RT1052
【Crystal】 24.000Mhz
【ARM PLL】 1200MHz
【SYS PLL】 528MHz
【USB PLL】 480MHz
龙邱LCD1.8模块使用说明： 电源使用3.3V。   
QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ*/

#include <stddef.h>
#include <stdio.h>
#include "ohos_types.h"
#include "cmsis_os2.h"
#include "iot_gpio.h"
#include "iot_gpio_ex.h"
#include "ST7735.h"

#define TFTSPI_CS     9    //CS   
#define TFTSPI_SCL    7    //SCL  
#define TFTSPI_SDA    8    //SDI  
#define TFTSPI_DC     5    //DC   
#define TFTSPI_RST    6    //RST  

/**********************************************************
函数名称：TFTSPI_init()
入口参数： 0:横屏  1：竖屏
出口参数：无
时间：2018/1/26
功能说明：器件初始化
其他说明：无
**********************************************************/
void TFTSPI_Init(uint8_t type)
{ 	
    /*  母板上的引脚 */
    IoTGpioInit(TFTSPI_CS);
    IoTGpioSetDir(TFTSPI_CS, IOT_GPIO_DIR_OUT);

    IoTGpioInit(TFTSPI_SCL);
    IoTGpioSetDir(TFTSPI_SCL, IOT_GPIO_DIR_OUT);

    IoTGpioInit(TFTSPI_SDA);
    IoTGpioSetDir(TFTSPI_SDA, IOT_GPIO_DIR_OUT);

    IoTGpioInit(TFTSPI_DC);
    IoTGpioSetDir(TFTSPI_DC, IOT_GPIO_DIR_OUT);

    IoTGpioInit(TFTSPI_RST);
    IoTGpioSetDir(TFTSPI_RST, IOT_GPIO_DIR_OUT);

    // IoTGpioSetOutputVal(TFTSPI_CS, 0);
    // IoTGpioSetOutputVal(TFTSPI_SCL, 0);
    // IoTGpioSetOutputVal(TFTSPI_SDA, 0);
    // IoTGpioSetOutputVal(TFTSPI_DC, 0);

    IoTGpioSetOutputVal(TFTSPI_RST, 0);

    hi_udelay(50); 
    IoTGpioSetOutputVal(TFTSPI_RST, 1);
    hi_udelay(50); 
    TFTSPI_Write_Cmd(0x11);       		  	//关闭睡眠，振荡器工作
    hi_udelay(10); 
    TFTSPI_Write_Cmd(0xB1);
    TFTSPI_Write_Byte(0x05);
    TFTSPI_Write_Byte(0x3C);
    TFTSPI_Write_Byte(0x3C);
    TFTSPI_Write_Cmd(0xB2);
    TFTSPI_Write_Byte(0x05);
    TFTSPI_Write_Byte(0x3C);
    TFTSPI_Write_Byte(0x3C);
    TFTSPI_Write_Cmd(0xB3);
    TFTSPI_Write_Byte(0x05);
    TFTSPI_Write_Byte(0x3C);
    TFTSPI_Write_Byte(0x3C);
    TFTSPI_Write_Byte(0x05);
    TFTSPI_Write_Byte(0x3C);
    TFTSPI_Write_Byte(0x3C);
    //------------------------------------End ST7735S Frame Rate-----------------------------------------//
    TFTSPI_Write_Cmd(0xB4); //Dot inversion
    TFTSPI_Write_Byte(0x03);
    TFTSPI_Write_Cmd(0xC0);  
    TFTSPI_Write_Byte(0x28);
    TFTSPI_Write_Byte(0x08);
    TFTSPI_Write_Byte(0x04);
    TFTSPI_Write_Cmd(0xC1);
    TFTSPI_Write_Byte(0XC0);
    TFTSPI_Write_Cmd(0xC2);
    TFTSPI_Write_Byte(0x0D);
    TFTSPI_Write_Byte(0x00);
    TFTSPI_Write_Cmd(0xC3);
    TFTSPI_Write_Byte(0x8D);
    TFTSPI_Write_Byte(0x2A);
    TFTSPI_Write_Cmd(0xC4);
    TFTSPI_Write_Byte(0x8D);
    TFTSPI_Write_Byte(0xEE);
    //---------------------------------End ST7735S Power Sequence-------------------------------------//
    TFTSPI_Write_Cmd(0xC5); //VCOM
    TFTSPI_Write_Byte(0x1A);
    TFTSPI_Write_Cmd(0x36); //MX, MY, RGB mode
    if(type) 
      TFTSPI_Write_Byte(0xC0);              //竖屏显示          //MX=1,MY=1
    else
      TFTSPI_Write_Byte(0xA0);              //横屏显示
    //------------------------------------ST7735S Gamma Sequence-----------------------------------------//
    TFTSPI_Write_Cmd(0xE0);
    TFTSPI_Write_Byte(0x04);
    TFTSPI_Write_Byte(0x22);
    TFTSPI_Write_Byte(0x07);
    TFTSPI_Write_Byte(0x0A);
    TFTSPI_Write_Byte(0x2E);
    TFTSPI_Write_Byte(0x30);
    TFTSPI_Write_Byte(0x25);
    TFTSPI_Write_Byte(0x2A);
    TFTSPI_Write_Byte(0x28);
    TFTSPI_Write_Byte(0x26);
    TFTSPI_Write_Byte(0x2E);
    TFTSPI_Write_Byte(0x3A);
    TFTSPI_Write_Byte(0x00);
    TFTSPI_Write_Byte(0x01);
    TFTSPI_Write_Byte(0x03);
    TFTSPI_Write_Byte(0x13);
    TFTSPI_Write_Cmd(0xE1);
    TFTSPI_Write_Byte(0x04);
    TFTSPI_Write_Byte(0x16);
    TFTSPI_Write_Byte(0x06);
    TFTSPI_Write_Byte(0x0D);
    TFTSPI_Write_Byte(0x2D);
    TFTSPI_Write_Byte(0x26);
    TFTSPI_Write_Byte(0x23);
    TFTSPI_Write_Byte(0x27);
    TFTSPI_Write_Byte(0x27);
    TFTSPI_Write_Byte(0x25);
    TFTSPI_Write_Byte(0x2D);
    TFTSPI_Write_Byte(0x3B);
    TFTSPI_Write_Byte(0x00);
    TFTSPI_Write_Byte(0x01);
    TFTSPI_Write_Byte(0x04);
    TFTSPI_Write_Byte(0x13);
    //------------------------------------End ST7735S Gamma Sequence-----------------------------------------//
    TFTSPI_Write_Cmd(0x3A); //65k mode
    TFTSPI_Write_Byte(0x05);
    TFTSPI_Write_Cmd(0x29); //Display on
}
void tft18delay_1us(unsigned int Del)		//
{ 
    hi_udelay(Del); 
}
/******************DRIVE IC寄存器寻址 8080 SERIES*******************************/
void TFTSPI_Write_Cmd(uint8_t cmd)
{
  uint8_t i;
  IoTGpioSetOutputVal(TFTSPI_DC, 0); // A0=0 ILI9163_A0=0;	 //A0=0发送命令  
  for(i=0;i<8;i++)
  {
    IoTGpioSetOutputVal(TFTSPI_SCL, 0);
    //tft18delay_1us(1);	// SCK=0  ILI9163_SCK=0;
    if(cmd&0x80)
    {
        IoTGpioSetOutputVal(TFTSPI_SDA, 1);
    }// SDI=1
    else
    {
        IoTGpioSetOutputVal(TFTSPI_SDA, 0);
    }// SDI=0 
    IoTGpioSetOutputVal(TFTSPI_SCL, 1);//tft18delay_1us(1);	// SCK=0  ILI9163_SCK=0;
    //tft18delay_1us(1);	// SCK=1  ILI9163_SCK = 1;
    cmd = (cmd<<1);
  }
}

/*****************DRIVE IC寄存器写数据 8080 SERIES******************************/
void TFTSPI_Write_Byte(uint8_t dat)
{  
  uint8_t i;
  
  IoTGpioSetOutputVal(TFTSPI_DC, 1);// A0=1  ILI9163_A0=1;		  //A0=1发送数据  				
  for(i=0;i<8;i++)
  {
    IoTGpioSetOutputVal(TFTSPI_SCL, 0);
    // tft18delay_1us(1);	// SCK=0  ILI9163_SCK=0; 	    
    if(dat&0x80)
    {
        IoTGpioSetOutputVal(TFTSPI_SDA, 1);
    }// SDI=1
    else
    {
        IoTGpioSetOutputVal(TFTSPI_SDA, 0);
    }// SDI=0             
    IoTGpioSetOutputVal(TFTSPI_SCL, 1);
    // tft18delay_1us(1);	// SCK=1 ILI9163_SCK = 1;
    dat = (dat<<1);    
  }
}

/****************DRIVE IC GDRAM 写数据 16BITS 8080 SERIES*****************************/
void TFTSPI_Write_Word(uint16_t dat)
{  		 
  uint8_t i;
  
  IoTGpioSetOutputVal(TFTSPI_DC, 1);// A0=1  ILI9163_A0=1;	
  for(i=0;i<16;i++)
  {
    IoTGpioSetOutputVal(TFTSPI_SCL, 0);    
    //tft18delay_1us(1);	// SCK=0  ILI9163_SCK=0;  
    if(dat&0x8000)
    { 
        IoTGpioSetOutputVal(TFTSPI_SDA, 1);    
    }// SDI=1
    else
    {
        IoTGpioSetOutputVal(TFTSPI_SDA, 0);    
    }// SDI=0
    IoTGpioSetOutputVal(TFTSPI_SCL, 1);    
    //tft18delay_1us(1);	// SCK=1  ILI9163_SCK=1;
    dat<<=1;    
  }  
}

/**********************************************************
函数名称：TFTSPI_Set_Pos()
入口参数：起始终止坐标
出口参数：无
时间：2018/1/26
功能说明：重新定位输入信息位置
其他说明：无
**********************************************************/
void TFTSPI_Set_Pos(uint8_t xs,uint8_t ys,uint8_t xe,uint8_t ye)
{
  TFTSPI_Write_Cmd(0x2A);      	//Colulm addRSTs set
  TFTSPI_Write_Byte(0x00);		//行起始坐标高8位，始终为零
  TFTSPI_Write_Byte(xs);			//行起始坐标低8位
  TFTSPI_Write_Byte(0x00);		//行终止坐标高8位，始终为零
  TFTSPI_Write_Byte(xe);			//行终止坐标低8位  
  TFTSPI_Write_Cmd(0x2B);      	//Colulm addRSTs set
  TFTSPI_Write_Byte(0x00);		//列起始坐标高8位，始终为零
  TFTSPI_Write_Byte(ys);			//列起始坐标低8位
  TFTSPI_Write_Byte(0x00);		//列终止坐标高8位，始终为零
  TFTSPI_Write_Byte(ye);			//列终止坐标低8位  
  TFTSPI_Write_Cmd(0x2C);      	//GRAM接收MCU数据或命令
}

/**********************************************************
函数名称：TFTSPI_Addr_Rst()
入口参数：无
出口参数：无
时间：2018/1/26
功能说明：重置地址
其他说明：无
**********************************************************/
void TFTSPI_Addr_Rst(void)
{
  TFTSPI_Write_Cmd(0x2a);     //配置MCU可操作的LCD内部RAM横坐标起始、结束参数
  TFTSPI_Write_Byte(0x00);       //横坐标起始地址0x0000
  TFTSPI_Write_Byte(0x00);					
  TFTSPI_Write_Byte(0x00);       //横坐标结束地址0x007f(127)
  TFTSPI_Write_Byte(0xa8);       //7f  
  TFTSPI_Write_Cmd(0x2b);     //配置MCU可操作的LCD内部RAM纵坐标起始结束参数
  TFTSPI_Write_Byte(0x00);       //纵坐标起始地址0x0000
  TFTSPI_Write_Byte(0x00);
  TFTSPI_Write_Byte(0x00);       //纵坐标结束地址0x009f(159)
  TFTSPI_Write_Byte(0xb3);       //9f  
  TFTSPI_Write_Cmd(0x2C);     //GRAM接收MCU数据或命令
}

/*从第几列开始填充某一行
例：TFTSPI_Show_line(0,5,WHITE);  //填充第五行
TFTSPI_Show_line(2,5,WHITE);  //从第二个字符开始填充第五行  
*/
void TFTSPI_Show_Line(uint8_t xs,uint8_t ys,uint16_t color)
{
  unsigned int i,j;
  
  //TFTSPI_Addr_Rst();
  //填充行
  TFTSPI_Set_Pos(xs*8,ys*16,TFT18W,(ys+1)*16);
  for(i=0;i<TFT18W;i++)      //160
  {
    for(j=0;j<TFT18H;j++)
    {
      TFTSPI_Write_Word(color);
    }
  }
}

/*
【功能】 填充指定区域
【参数】 起始点x坐标，起始点y坐标，终止点x坐标，终止点有坐标，填充色
例：TFTSPI_Show_line(0,5,WHITE);  //填充第五行
TFTSPI_Show_line(2,5,WHITE);  //从第二个字符开始填充第五行
*/
void TFTSPI_Fill_Area(uint8_t xs,uint8_t ys,uint8_t xe,uint8_t ye,uint16_t color)
{
  unsigned int i,j;
  
  TFTSPI_Set_Pos(xs,ys,xe,ye);
  for(i=0;i<(xe-xs);i++)  
  {
    for(j=0;j<(ye-ys);j++)
    {
      TFTSPI_Write_Word(color);
    }
  }
}

/**********************************************************
函数名称：TFTSPI_CLS()
入口参数：color为常用的需要显示的颜色(已经提前定义)，color为
NULL时，则可将不常用颜色放入dat中加以显示
出口参数：无
时间：2012-09-09
功能说明：全屏显示单色画面
其他说明：无
**********************************************************/
void TFTSPI_CLS(uint16_t color)
{
  unsigned int i,j;
  
  TFTSPI_Addr_Rst();
  
  for(i=0;i<TFT18W;i++)      //160
  {
    for(j=0;j<TFT18H;j++)
    {
      TFTSPI_Write_Word(color);
    }
  }
}

/**********************************************************
函数名称：TFTSPI_Draw_part()
入口参数：起始、终止横坐标(0-127)，纵坐标(0-159),显示颜色uint16
出口参数：无
时间：2012-09-09
功能说明：填充矩形区域
其他说明：0<=xs<xe<=127
0<=ys<ye<=159
**********************************************************/
void TFTSPI_Draw_Part(uint8_t xs,uint8_t ys,uint8_t xe,uint8_t ye,uint16_t color_dat)
{
  uint8_t i,j;
  
  TFTSPI_Set_Pos(xs,ys,xe,ye);	
  for(j=0;j<(ye-ys+1);j++)
  {
    for(i=0;i<(xe-xs+1);i++)
    {
      TFTSPI_Write_Word(color_dat);
    }
  }   
}

/**********************************************************
函数名称：TFTSPI_Draw_rectangle()
入口参数：起始、终止横坐标(0-127)，纵坐标(0-159),显示颜色uint16
出口参数：无
时间：2012-09-09
功能说明：画矩形边框
其他说明：0<=xs<xe<=127
0<=ys<ye<=159
**********************************************************/
void TFTSPI_Draw_Rectangle(uint8_t xs,uint8_t ys,uint8_t xe,uint8_t ye,uint16_t color_dat)
{
  TFTSPI_Draw_Line(xs,ys,xs,ye,color_dat);	  //画矩形左边
  TFTSPI_Draw_Line(xe,ys,xe,ye,color_dat);	  //画矩形右边
  TFTSPI_Draw_Line(xs,ys,xe,ys,color_dat);	  //画矩形上边
  TFTSPI_Draw_Line(xs,ye,xe,ye,color_dat);	  //画矩形下边
}

/**********************************************************
函数名称：TFTSPI_Draw_circle()
入口参数：圆心横坐标(0-127)，纵坐标(0-159),半径(0-128),显示颜色uint16
出口参数：无
时间：2012-09-09
功能说明：画圆形边框(仅支持屏幕内画圆)
其他说明：0<=x<=127
0<=y<=159
**********************************************************/
void TFTSPI_Draw_Circle(uint8_t x,uint8_t y,uint8_t r,uint16_t color_dat)
{
  unsigned char dx, dy = r; 
  
  if((x>=r) &&((TFT18W-x)>=r) && (y>=r) && ((TFT18H-y)>=r))		//确定所画圆在屏幕范围内，没有超出最外边，(暂不支持与屏幕边相交)
  {
    for(dx = 0; dx <= r; dx++)
    {
      while((r * r + 1 - dx * dx) < (dy * dy)) dy--;
      TFTSPI_Draw_Dot(x + dx, y - dy, color_dat);
      TFTSPI_Draw_Dot(x - dx, y - dy, color_dat);
      TFTSPI_Draw_Dot(x - dx, y + dy, color_dat);
      TFTSPI_Draw_Dot(x + dx, y + dy, color_dat);
      
      TFTSPI_Draw_Dot(x + dy, y - dx, color_dat);
      TFTSPI_Draw_Dot(x - dy, y - dx, color_dat);
      TFTSPI_Draw_Dot(x - dy, y + dx, color_dat);
      TFTSPI_Draw_Dot(x + dy, y + dx, color_dat);
    }
  }
}


/**********************************************************
函数名称：TFTSPI_Draw_line()
入口参数：起始、终止横坐标(0-127)，纵坐标(0-159),显示颜色uint16
出口参数：无
时间：2012-09-09
功能说明：画直线
其他说明：0<=xs<xe<=127
0<=ys<ye<=159
**********************************************************/
void TFTSPI_Draw_Line(uint8_t xs,uint8_t ys,uint8_t xe,uint8_t ye,uint16_t color_dat)
{
  uint8_t i,ds;
  int dx,dy,inc_x, inc_y;
  int xerr = 0, yerr = 0;				        //初始化变量
  
  if(xs==xe)	  						//如果是画垂直线则只需对竖直坐标计数
  {
    TFTSPI_Set_Pos(xs,ys,xe,ye);
    for(i=0;i<(ye-ys+1);i++)
    {
      TFTSPI_Write_Word(color_dat);
    }
  }
  else if(ys==ye)						//如果是水平线则只需要对水平坐标计数
  {
    TFTSPI_Set_Pos(xs,ys,xe,ye);
    for(i=0;i<(xe-xs+1);i++)
    {
      TFTSPI_Write_Word(color_dat);
    }
  } 
  else								//如果是斜线，则重新计算，使用画点函数画出直线
  {
    dx = xe - xs;						//计算坐标增量
    dy = ye - ys;
    
    if(dx > 0) inc_x = 1;					//设置单步方向
    else 
    {
      inc_x = -1; dx = -dx;
    }
    if(dy > 0) inc_y = 1;					//设置单步方向
    else
    {
      inc_y = -1; dy = -dy;
    }
    
    if(dx > dy) ds = dx;					//选取基本增量坐标轴
    else		ds = dy;
    
    for(i = 0; i <= ds+1; i++)					//画线输出
    {
      TFTSPI_Draw_Dot(xs, ys,color_dat);	//画点
      xerr += dx;
      yerr += dy;
      if(xerr > ds)
      {
        xerr -= ds;
        xs   += inc_x;
      }
      if(yerr > ds)
      {
        yerr -= ds;
        ys   += inc_y;
      }
    }
  }  
}

/**********************************************************
函数名称：TFTSPI_Draw_Dot()
入口参数：起始横坐标(0-127)，纵坐标(0-159),显示颜色uint16
出口参数：无
时间：2012-09-09
功能说明：画点
其他说明：0<=x<=127
0<=y<=159
**********************************************************/
void TFTSPI_Draw_Dot(uint8_t x,uint8_t y,uint16_t color_dat)
{
  TFTSPI_Set_Pos(x,y,x,y);
  TFTSPI_Write_Word(color_dat);
}



void TFTSPI_Show_Pic(uint8_t xs,uint8_t ys,uint8_t xe,uint8_t ye,uint8_t *ppic)
{
  unsigned int i,j,k=0;
  
  TFTSPI_Set_Pos(xs,ys,xe-1,ye);
  for(i=0;i<ye-ys;i++)
  { 
    for(j=0;j<xe-xs;j++)
    {			
      TFTSPI_Write_Word(((uint16_t)ppic[k])<<8|ppic[k+1]);			
      k++;  k++;
    }
  }    
}
/*--------------------------------------------------------------
//字库码的引索
(0)  !(1)  "(2)  #(3)  $(4)  %(5)  &(6)  '(7)
((8)  )(9)  *(10) +(11) ,(12) -(13) .(14) /(15)
0(16) 1(17) 2(18) 3(19) 4(20) 5(21) 6(22) 7(23)
8(24) 9(25) :(26) ;(27) <(28) =(29) >(30) ?(31)
@(32) A(33) B(34) C(35) D(36) E(37) F(38) G(39)
H(40) I(41) J(42) K(43) L(44) M(45) N(46) O(47)
P(48) Q(49) R(50) S(51) T(52) U(53) V(54) W(55)
X(56) Y(57) Z(58) [(59) \(60) ](61) ^(62) _(63)
`(64) a(65) b(66) c(67) d(68) e(69) f(70) g(71)
h(72) i(73) j(74) k(75) l(76) m(77) n(78) o(79)
p(80) q(81) r(82) s(83) t(84) u(85) v(86) w(87)
x(88) y(89) z(90) {(91) |(92) }(93) ~(94)
--------------------------------------------------------------*/
//	  字体:	8*6字体
//取码规则:	低位在前, 列行扫描, 阴码(1-亮, 0-灭)
//查表方法: 要显示的ASCII码-32就可以得到字库码的指针
const unsigned char Font_code8[][6] = {
  {0x00,0x00,0x00,0x00,0x00,0x00},// (0)
  {0x00,0x00,0x00,0x4F,0x00,0x00},//!(1)
  {0x00,0x00,0x07,0x00,0x07,0x00},//"(2)
  {0x00,0x14,0x7F,0x14,0x7F,0x14},//#(3)
  {0x00,0x24,0x2A,0x7F,0x2A,0x12},//$(4)
  {0x00,0x23,0x13,0x08,0x64,0x62},//%(5)
  {0x00,0x36,0x49,0x55,0x22,0x50},//&(6)
  {0x00,0x00,0x05,0x03,0x00,0x00},//'(7)
  {0x00,0x00,0x1C,0x22,0x41,0x00},//((8)
  {0x00,0x00,0x41,0x22,0x1C,0x00},//)(9)
  {0x00,0x14,0x08,0x3E,0x08,0x14},//*(10)
  {0x00,0x08,0x08,0x3E,0x08,0x08},//+(11)
  {0x00,0x00,0x50,0x30,0x00,0x00},//,(12)
  {0x00,0x08,0x08,0x08,0x08,0x08},//-(13)
  {0x00,0x00,0x60,0x60,0x00,0x00},//.(14)
  {0x00,0x20,0x10,0x08,0x04,0x02},///(15)
  {0x00,0x3E,0x51,0x49,0x45,0x3E},//0(16)
  {0x00,0x00,0x42,0x7F,0x40,0x00},//1(17)
  {0x00,0x42,0x61,0x51,0x49,0x46},//2(18)
  {0x00,0x21,0x41,0x45,0x4B,0x31},//3(19)
  {0x00,0x18,0x14,0x12,0x7F,0x10},//4(20)
  {0x00,0x27,0x45,0x45,0x45,0x39},//5(21)
  {0x00,0x3C,0x4A,0x49,0x49,0x30},//6(22)
  {0x00,0x01,0x71,0x09,0x05,0x03},//7(23)
  {0x00,0x36,0x49,0x49,0x49,0x36},//8(24)
  {0x00,0x06,0x49,0x49,0x29,0x1E},//9(25)
  {0x00,0x00,0x36,0x36,0x00,0x00},//:(26)
  {0x00,0x00,0x56,0x36,0x00,0x00},//;(27)
  {0x00,0x08,0x14,0x22,0x41,0x00},//<(28)
  {0x00,0x14,0x14,0x14,0x14,0x14},//=(29)
  {0x00,0x00,0x41,0x22,0x14,0x08},//>(30)
  {0x00,0x02,0x01,0x51,0x09,0x06},//?(31)
  {0x00,0x32,0x49,0x79,0x41,0x3E},//@(32)
  {0x00,0x7E,0x11,0x11,0x11,0x7E},//A(33)
  {0x00,0x7F,0x49,0x49,0x49,0x3E},//B(34)
  {0x00,0x3E,0x41,0x41,0x41,0x22},//C(35)
  {0x00,0x7F,0x41,0x41,0x22,0x1C},//D(36)
  {0x00,0x7F,0x49,0x49,0x49,0x41},//E(37)
  {0x00,0x7F,0x09,0x09,0x09,0x01},//F(38)
  {0x00,0x3E,0x41,0x49,0x49,0x7A},//G(39)
  {0x00,0x7F,0x08,0x08,0x08,0x7F},//H(40)
  {0x00,0x00,0x41,0x7F,0x41,0x00},//I(41)
  {0x00,0x20,0x40,0x41,0x3F,0x01},//J(42)
  {0x00,0x7F,0x08,0x14,0x22,0x41},//K(43)
  {0x00,0x7F,0x40,0x40,0x40,0x40},//L(44)
  {0x00,0x7F,0x02,0x04,0x02,0x7F},//M(45)
  {0x00,0x7F,0x04,0x08,0x10,0x7F},//N(46)
  {0x00,0x3E,0x41,0x41,0x41,0x3E},//O(47)
  {0x00,0x7F,0x09,0x09,0x09,0x06},//P(48)
  {0x00,0x3E,0x41,0x51,0x21,0x5E},//Q(49)
  {0x00,0x7F,0x09,0x19,0x29,0x46},//R(50)
  {0x00,0x46,0x49,0x49,0x49,0x31},//S(51)
  {0x00,0x01,0x01,0x7F,0x01,0x01},//T(52)
  {0x00,0x3F,0x40,0x40,0x40,0x3F},//U(53)
  {0x00,0x1F,0x20,0x40,0x20,0x1F},//V(54)
  {0x00,0x3F,0x40,0x38,0x40,0x3F},//W(55)
  {0x00,0x63,0x14,0x08,0x14,0x63},//X(56)
  {0x00,0x03,0x04,0x78,0x04,0x03},//Y(57)
  {0x00,0x61,0x51,0x49,0x45,0x43},//Z(58)
  {0x00,0x00,0x7F,0x41,0x41,0x00},//[(59)
  {0x00,0x15,0x16,0x7C,0x16,0x15},//\(60)
  {0x00,0x00,0x41,0x41,0x7F,0x00},//](61)
  {0x00,0x04,0x02,0x01,0x02,0x04},//^(62)
  {0x00,0x40,0x40,0x40,0x40,0x40},//_(63)
  {0x00,0x00,0x01,0x02,0x04,0x00},//`(64)
  {0x00,0x20,0x54,0x54,0x54,0x78},//a(65)
  {0x00,0x7F,0x48,0x44,0x44,0x38},//b(66)
  {0x00,0x38,0x44,0x44,0x44,0x20},//c(67)
  {0x00,0x38,0x44,0x44,0x48,0x7F},//d(68)
  {0x00,0x38,0x54,0x54,0x54,0x18},//e(69)
  {0x00,0x08,0x7E,0x09,0x01,0x02},//f(70)
  {0x00,0x0C,0x52,0x52,0x52,0x3E},//g(71)
  {0x00,0x7F,0x08,0x04,0x04,0x78},//h(72)
  {0x00,0x00,0x44,0x7D,0x40,0x00},//i(73)
  {0x00,0x20,0x40,0x44,0x3D,0x00},//j(74)
  {0x00,0x7F,0x10,0x28,0x44,0x00},//k(75)
  {0x00,0x00,0x41,0x7F,0x40,0x00},//l(76)
  {0x00,0x7E,0x02,0x0C,0x02,0x7C},//m(77)
  {0x00,0x7E,0x04,0x02,0x02,0x7C},//n(78)
  {0x00,0x38,0x44,0x44,0x44,0x38},//o(79)
  {0x00,0x7C,0x14,0x14,0x14,0x08},//p(80)
  {0x00,0x08,0x14,0x14,0x18,0x7C},//q(81)
  {0x00,0x7C,0x08,0x04,0x04,0x08},//r(82)
  {0x00,0x48,0x54,0x54,0x54,0x20},//s(83)
  {0x00,0x04,0x3F,0x44,0x40,0x20},//t(84)
  {0x00,0x3C,0x40,0x40,0x20,0x7C},//u(85)
  {0x00,0x1C,0x20,0x40,0x20,0x1C},//v(86)
  {0x00,0x3C,0x40,0x30,0x40,0x3C},//w(87)
  {0x00,0x44,0x28,0x10,0x28,0x44},//x(88)
  {0x00,0x0C,0x50,0x50,0x50,0x3C},//y(89)
  {0x00,0x44,0x64,0x54,0x4C,0x44},//z(90)
  {0x00,0x00,0x08,0x36,0x41,0x00},//{(91)
  {0x00,0x00,0x00,0x7F,0x00,0x00},//|(92)
  {0x00,0x00,0x41,0x36,0x08,0x00},//}(93)
  {0x00,0x08,0x04,0x08,0x10,0x08},//~(94)
  {0x00,0x08,0x08,0x2A,0x1C,0x08},//→(127)
  {0x00,0x08,0x1C,0x2A,0x08,0x08},//←(128)
  {0x00,0x04,0x02,0x7F,0x02,0x04},//↑(129)
  {0x00,0x10,0x20,0x7F,0x20,0x10},//↓(130)
  {0x00,0x1C,0x2A,0x32,0x2A,0x1C},//笑面(131)
  {0x00,0x1C,0x22,0x44,0x22,0x1C}};//爱心(132)   


/*--------------------------------------------------------------*/
//	  字体:	GulimChe12
//取码规则:	高位在前, 行列扫描, 阴码(1-亮, 0-灭)
//查表方法: 要显示的ASCII码-32就可以得到字库码的指针
const unsigned char Font_code16[][16] = { 
  {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},// (0)
  {0x00,0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x00,0x00,0x10,0x10,0x00,0x00},//!(1)
  {0x00,0x00,0x24,0x24,0x24,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},//"(3)
  {0x00,0x00,0x48,0x48,0x48,0xFE,0x24,0x24,0x24,0x24,0x24,0x7F,0x12,0x12,0x12,0x00},//#(4)
  {0x00,0x10,0x7C,0x92,0x92,0x12,0x14,0x18,0x30,0x50,0x90,0x92,0x92,0x7C,0x10,0x00},//$(5)
  {0x00,0x00,0x8C,0x92,0x52,0x32,0x2C,0x10,0x08,0x68,0x94,0x92,0x92,0x60,0x00,0x00},//%(6)
  {0x00,0x00,0x18,0x24,0x24,0x24,0x18,0x98,0xA4,0xA2,0x42,0x42,0xA2,0x9C,0x00,0x00},//&(7)
  {0x00,0x00,0x10,0x10,0x10,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},//'(8)
  {0x00,0x20,0x10,0x08,0x08,0x04,0x04,0x04,0x04,0x04,0x04,0x08,0x08,0x10,0x20,0x00},//((9)
  {0x00,0x04,0x08,0x10,0x10,0x20,0x20,0x20,0x20,0x20,0x20,0x10,0x10,0x08,0x04,0x00},//)(10)
  {0x00,0x00,0x00,0x00,0x00,0x08,0x2A,0x1C,0x14,0x22,0x00,0x00,0x00,0x00,0x00,0x00},//*(11)
  {0x00,0x00,0x00,0x00,0x10,0x10,0x10,0xFE,0x10,0x10,0x10,0x00,0x00,0x00,0x00,0x00},//+(12)
  {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x08,0x00},//,(13)
  {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},//-(14)
  {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x00,0x00},//.(15)
  {0x00,0x00,0x40,0x40,0x20,0x20,0x10,0x10,0x08,0x08,0x04,0x04,0x02,0x02,0x00,0x00},///(16)
  {0x00,0x00,0x38,0x44,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x44,0x38,0x00,0x00},//0(17)
  {0x00,0x00,0x10,0x1C,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x00,0x00},
  {0x00,0x00,0x3C,0x42,0x42,0x40,0x40,0x20,0x10,0x08,0x04,0x02,0x02,0x7E,0x00,0x00},
  {0x00,0x00,0x3C,0x42,0x42,0x40,0x40,0x3C,0x40,0x40,0x40,0x42,0x42,0x3C,0x00,0x00},
  {0x00,0x00,0x60,0x60,0x50,0x50,0x48,0x48,0x44,0x44,0xFE,0x40,0x40,0x40,0x00,0x00},
  {0x00,0x00,0x7E,0x02,0x02,0x02,0x3E,0x42,0x40,0x40,0x40,0x42,0x42,0x3C,0x00,0x00},
  {0x00,0x00,0x3C,0x42,0x42,0x02,0x02,0x3E,0x42,0x42,0x42,0x42,0x42,0x3C,0x00,0x00},
  {0x00,0x00,0x7E,0x40,0x20,0x20,0x10,0x10,0x10,0x08,0x08,0x08,0x08,0x08,0x00,0x00},
  {0x00,0x00,0x3C,0x42,0x42,0x42,0x42,0x3C,0x42,0x42,0x42,0x42,0x42,0x3C,0x00,0x00},
  {0x00,0x00,0x3C,0x42,0x42,0x42,0x42,0x42,0x7C,0x40,0x40,0x42,0x42,0x3C,0x00,0x00},//9(25)
  {0x00,0x00,0x00,0x00,0x08,0x08,0x00,0x00,0x00,0x00,0x08,0x08,0x00,0x00,0x00,0x00},//:(26)
  {0x00,0x00,0x00,0x00,0x10,0x10,0x00,0x00,0x00,0x00,0x10,0x10,0x10,0x08,0x00,0x00},//;(27)
  {0x00,0x00,0x00,0x40,0x30,0x08,0x06,0x01,0x06,0x08,0x30,0x40,0x00,0x00,0x00,0x00},//<(28)
  {0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x00,0x00,0xFE,0x00,0x00,0x00,0x00,0x00,0x00},//=(29)
  {0x00,0x00,0x00,0x02,0x0C,0x10,0x60,0x80,0x60,0x10,0x0C,0x02,0x00,0x00,0x00,0x00},//>(30)
  {0x00,0x00,0x38,0x44,0x82,0x82,0x40,0x20,0x10,0x10,0x10,0x00,0x10,0x10,0x00,0x00},//?(31)
  {0x00,0x00,0x38,0x44,0x82,0xB2,0xAA,0xAA,0xAA,0xAA,0xD2,0x02,0x84,0x78,0x00,0x00},//@(32)
  {0x00,0x00,0x10,0x10,0x10,0x28,0x28,0x28,0x44,0x44,0x7C,0x82,0x82,0x82,0x00,0x00},//A(33)
  {0x00,0x00,0x3E,0x42,0x82,0x82,0x42,0x3E,0x42,0x82,0x82,0x82,0x42,0x3E,0x00,0x00},
  {0x00,0x00,0x38,0x44,0x82,0x82,0x02,0x02,0x02,0x02,0x82,0x82,0x44,0x38,0x00,0x00},
  {0x00,0x00,0x3E,0x42,0x42,0x82,0x82,0x82,0x82,0x82,0x82,0x42,0x42,0x3E,0x00,0x00},
  {0x00,0x00,0xFE,0x02,0x02,0x02,0x02,0x7E,0x02,0x02,0x02,0x02,0x02,0xFE,0x00,0x00},
  {0x00,0x00,0xFE,0x02,0x02,0x02,0x02,0x7E,0x02,0x02,0x02,0x02,0x02,0x02,0x00,0x00},
  {0x00,0x00,0x38,0x44,0x82,0x02,0x02,0x02,0xE2,0x82,0x82,0x82,0xC4,0xB8,0x00,0x00},
  {0x00,0x00,0x82,0x82,0x82,0x82,0x82,0xFE,0x82,0x82,0x82,0x82,0x82,0x82,0x00,0x00},
  {0x00,0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x00,0x00},
  {0x00,0x00,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x22,0x22,0x1C,0x00,0x00},
  {0x00,0x00,0x82,0x42,0x22,0x12,0x0A,0x06,0x06,0x0A,0x12,0x22,0x42,0x82,0x00,0x00},
  {0x00,0x00,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x7E,0x00,0x00},
  {0x00,0x00,0x82,0x82,0xC6,0xC6,0xAA,0xAA,0x92,0x92,0x92,0x82,0x82,0x82,0x00,0x00},
  {0x00,0x00,0x82,0x86,0x86,0x8A,0x8A,0x92,0x92,0xA2,0xA2,0xC2,0xC2,0x82,0x00,0x00},
  {0x00,0x00,0x38,0x44,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x44,0x38,0x00,0x00},
  {0x00,0x00,0x3E,0x42,0x82,0x82,0x82,0x42,0x3E,0x02,0x02,0x02,0x02,0x02,0x00,0x00},
  {0x00,0x00,0x38,0x44,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0xA2,0x44,0xB8,0x00,0x00},
  {0x00,0x00,0x3E,0x42,0x82,0x82,0x82,0x42,0x3E,0x42,0x82,0x82,0x82,0x82,0x00,0x00},
  {0x00,0x00,0x7C,0x82,0x82,0x02,0x04,0x18,0x20,0x40,0x80,0x82,0x82,0x7C,0x00,0x00},
  {0x00,0x00,0xFE,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x00,0x00},
  {0x00,0x00,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x82,0x7C,0x00,0x00},
  {0x00,0x00,0x82,0x82,0x82,0x44,0x44,0x44,0x28,0x28,0x28,0x10,0x10,0x10,0x00,0x00},
  {0x00,0x00,0x92,0x92,0x92,0x92,0x92,0xAA,0xAA,0xAA,0x44,0x44,0x44,0x44,0x00,0x00},
  {0x00,0x00,0x82,0x82,0x44,0x44,0x28,0x10,0x28,0x28,0x44,0x44,0x82,0x82,0x00,0x00},
  {0x00,0x00,0x82,0x82,0x44,0x44,0x28,0x28,0x10,0x10,0x10,0x10,0x10,0x10,0x00,0x00},
  {0x00,0x00,0x7E,0x40,0x20,0x20,0x10,0x10,0x08,0x08,0x04,0x04,0x02,0x7E,0x00,0x00},
  {0x00,0x78,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x78,0x00},
  {0x00,0x00,0x92,0x92,0x92,0xFF,0x92,0xAA,0xAA,0xAA,0x44,0x44,0x44,0x44,0x00,0x00},
  {0x00,0x1E,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x1E,0x00},
  {0x00,0x10,0x28,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x00},
  {0x00,0x04,0x08,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x3C,0x42,0x40,0x7C,0x42,0x42,0x42,0xBC,0x00,0x00},
  {0x00,0x00,0x02,0x02,0x02,0x02,0x3A,0x46,0x82,0x82,0x82,0x82,0x46,0x3A,0x00,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x78,0x84,0x02,0x02,0x02,0x02,0x84,0x78,0x00,0x00},
  {0x00,0x00,0x80,0x80,0x80,0x80,0xB8,0xC4,0x82,0x82,0x82,0x82,0xC4,0xB8,0x00,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x44,0x82,0xFE,0x02,0x02,0x84,0x78,0x00,0x00},
  {0x00,0x00,0x70,0x08,0x08,0x08,0x7E,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x00,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x58,0x64,0x42,0x42,0x42,0x64,0x58,0x42,0x3C,0x00},
  {0x00,0x00,0x02,0x02,0x02,0x02,0x3A,0x46,0x42,0x42,0x42,0x42,0x42,0x42,0x00,0x00},
  {0x00,0x00,0x10,0x10,0x00,0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x00,0x00},
  {0x00,0x00,0x10,0x10,0x00,0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x0C,0x00},
  {0x00,0x00,0x02,0x02,0x02,0x42,0x22,0x12,0x0A,0x06,0x0A,0x12,0x22,0x42,0x00,0x00},
  {0x00,0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x00,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x6E,0x92,0x92,0x92,0x92,0x92,0x92,0x92,0x00,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x3A,0x46,0x42,0x42,0x42,0x42,0x42,0x42,0x00,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x44,0x82,0x82,0x82,0x82,0x44,0x38,0x00,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x3A,0x46,0x82,0x82,0x82,0x46,0x3A,0x02,0x02,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0xB8,0xC4,0x82,0x82,0x82,0xC4,0xB8,0x80,0x80,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x74,0x0C,0x04,0x04,0x04,0x04,0x04,0x04,0x00,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x3C,0x42,0x02,0x0C,0x30,0x40,0x42,0x3C,0x00,0x00},
  {0x00,0x00,0x08,0x08,0x08,0x08,0x7E,0x08,0x08,0x08,0x08,0x08,0x08,0x70,0x00,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x7C,0x00,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x82,0x82,0x44,0x44,0x28,0x28,0x10,0x10,0x00,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x82,0x92,0x92,0x92,0xAA,0x6C,0x44,0x44,0x00,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x82,0x44,0x28,0x10,0x10,0x28,0x44,0x82,0x00,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x82,0x82,0x44,0x44,0x28,0x28,0x10,0x10,0x0E,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0x40,0x20,0x10,0x08,0x04,0x02,0x7E,0x00,0x00},
  {0x00,0x60,0x10,0x10,0x10,0x10,0x10,0x0C,0x10,0x10,0x10,0x10,0x10,0x10,0x60,0x00},
  {0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x00},
  {0x00,0x06,0x08,0x08,0x08,0x08,0x08,0x30,0x08,0x08,0x08,0x08,0x08,0x08,0x06,0x00},
  {0x00,0x00,0x00,0x00,0x00,0x00,0x8C,0x72,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
};	



const uint8_t hanzi_Idx[] = 
{     
  "智慧还书端"
  // "智能科技淘宝店液晶单片机智能车器人启动中电压量不足请稍候，！：℃攻击娱乐模式普通格斗对话俯卧撑倒立握手敬礼跳舞蹈运动蓝精灵太极街舞温度—"
};

const uint8_t hanzi_begin_Idx[] = {
  "开始还书"
};

const uint8_t hanzi_stunum_Idx[] = {
  "学号："
};

const uint8_t hanzi_boknumIdx[] = {
  "书号："
};

const uint8_t hanzi_endIdx[] = {
  "确认还书"
};

const uint8_t hanzi_duringIdx[] = {
  "正在还书"
};

const uint8_t hanzi_blankIdx[] = {
  "部分清屏"
};

const uint8_t hanzi_msgIdx[] = {
  "还书信息"
};

const unsigned char hanzi[] = {	
  //取码规则:	高位在前, 行扫描, 阴码(1-亮, 0-灭)
  //查表方法: 要显示的ASCII码-32就可以得到字库码的指针 微软雅黑16*12    ° 
  // 0x00,0x00,0x00,0x00,0x08,0x80,0x08,0x80,0x08,0x8C,0xF8,0xF0,
  // 0x08,0x80,0x08,0x80,0x38,0x84,0xC8,0x84,0x08,0xF8,0x00,0x00,//北0


  // 0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x40,0x04,0x46,0xFC,0x78,0x04,0x40,0x04,0x42,
  // 0xFC,0x42,0x04,0x7C,0x00,0x00,0x00,0x00,//北,0

  // 0x00,0x00,0x00,0x00,0x03,0x00,0xFF,0xFC,0x3F,0xF0,0x20,0x10,
  // 0x20,0x10,0x3F,0xF0,0x19,0x60,0x31,0x18,0xC7,0x0C,0x00,0x00,//京1
  // 0x00,0x00,0x00,0x00,0x04,0x60,0x04,0x30,0x7F,0xFC,0x04,0x88,
  // 0x04,0x90,0x08,0xE0,0x09,0x84,0x36,0x84,0x60,0xF8,0x00,0x00,//龙2
  // 0x00,0x00,0x0E,0x00,0x78,0xF8,0x40,0x88,0x40,0x90,0x7E,0xA0,
  // 0x48,0x90,0x48,0x88,0x48,0x88,0x4A,0xF0,0xF4,0x80,0x00,0x80,//邱3
  // 0x00,0x00,0x00,0x00,0x00,0x78,0x1F,0x80,0x10,0x00,0x10,0x00,
  // 0x1F,0xF8,0x10,0x40,0x10,0x40,0x10,0x40,0x7F,0xFC,0x00,0x00,//丘4
  // 0x00,0x00,0x20,0x00,0x7E,0xF8,0x90,0x88,0xFE,0x88,0x38,0xF8,
  // 0xC6,0x00,0x3F,0xF0,0x3F,0xF0,0x20,0x10,0x3F,0xF0,0x00,0x00,//智5
  // // 0x00,0x00,0x00,0x00,0x30,0x8C,0x46,0xF4,0xFF,0x84,0x7E,0xF8,
  // // 0x42,0x84,0x7E,0x98,0x7E,0xE4,0x42,0x84,0x4E,0xFC,0x00,0x00,//能6
  // 0x00,0x00,0x00,0x00,0x00,0x10,0x7D,0x90,0x10,0xD0,0x7F,0x10,
  // 0x19,0x90,0x37,0xFC,0x50,0x10,0x10,0x10,0x10,0x10,0x00,0x00,//科7
  // 0x00,0x00,0x00,0x00,0x20,0x40,0xFF,0xFC,0x20,0x40,0x27,0xF8,
  // 0x32,0x08,0xE1,0x10,0x20,0xE0,0x21,0xE0,0xEE,0x1C,0x00,0x00,//技8
  // 0x00,0x00,0x00,0x00,0x62,0x00,0x37,0xF8,0x6A,0x08,0x37,0xE8,
  // 0x0F,0xF8,0x24,0xA8,0x24,0xA8,0x47,0xE8,0x40,0x78,0x00,0x00,//淘9
  // 0x00,0x00,0x00,0x00,0x03,0x00,0x7F,0xF8,0x40,0x08,0x7F,0xF8,
  // 0x02,0x00,0x3F,0xF0,0x02,0x60,0x02,0x10,0x7F,0xF8,0x00,0x00,//宝10
  // 0x00,0x00,0x00,0x00,0x01,0x80,0x3F,0xF8,0x21,0x00,0x21,0xF8,
  // 0x21,0x00,0x2F,0xF0,0x28,0x10,0x68,0x10,0x4F,0xF0,0x00,0x00,//店11
  // 0x00,0x00,0x00,0x00,0x60,0xC0,0x3F,0xFC,0x62,0x40,0x34,0xF8,
  // 0x0D,0x48,0x36,0xB0,0x24,0x60,0x44,0xE0,0x47,0x1C,0x00,0x00,//液12
  // 0x00,0x00,0x00,0x00,0x3F,0xF0,0x20,0x10,0x3F,0xF0,0x3F,0xF0,
  // 0x7C,0xF8,0x44,0x88,0x7C,0xF8,0x44,0x88,0x7C,0xF8,0x44,0x88,//晶13
  // 0x00,0x00,0x10,0x20,0x08,0xC0,0x3F,0xF0,0x22,0x10,0x3F,0xF0,
  // 0x22,0x10,0x3F,0xF0,0x02,0x00,0x7F,0xF8,0x02,0x00,0x02,0x00,//单14
  // 0x00,0x00,0x00,0x00,0x10,0x40,0x10,0x40,0x10,0x40,0x1F,0xFC,
  // 0x10,0x00,0x1F,0xE0,0x10,0x20,0x20,0x20,0x60,0x20,0x00,0x00,//片15
  // 0x00,0x00,0x20,0x00,0x23,0xE0,0xFA,0x20,0x22,0x20,0x72,0x20,
  // 0x6A,0x20,0xA2,0x20,0xA2,0x24,0x24,0x24,0x28,0x38,0x00,0x00,//机16
  // 0x00,0x00,0x20,0x00,0x7E,0xF8,0x90,0x88,0xFE,0x88,0x38,0xF8,
  // 0xC6,0x00,0x3F,0xF0,0x3F,0xF0,0x20,0x10,0x3F,0xF0,0x00,0x00,//智17
  // 0x00,0x00,0x00,0x00,0x30,0x8C,0x46,0xF4,0xFF,0x84,0x7E,0xF8,
  // 0x42,0x84,0x7E,0x98,0x7E,0xE4,0x42,0x84,0x4E,0xFC,0x00,0x00,//能18
  // 0x00,0x00,0x04,0x00,0x08,0x00,0x7F,0xF8,0x11,0x00,0x31,0x00,
  // 0x3F,0xF0,0x01,0x00,0x01,0x00,0xFF,0xFC,0x01,0x00,0x01,0x00,//车19	 

  //  欢(0) 迎(1) 使(2) 用(3) 智(4) 慧(5) 还(6) 书(7) 系(8) 统(9)

  0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0xF9,0x80,0x0B,0xFC,0x5B,0x08,0x7E,0xD8,
  0x38,0xC0,0x38,0xE0,0x69,0xA0,0x63,0x30,0x46,0x08,0x00,0x00,0xFF,0xFC,0x00,0x00,//欢,0

  0x00,0x00,0x00,0x00,0x00,0x00,0x43,0x00,0x67,0xF8,0x24,0xD8,0x04,0xD8,0xE5,0xD8,
  0x26,0xD8,0x2C,0xF8,0x20,0xC0,0x70,0x00,0x4F,0xF8,0x00,0x00,0xFF,0xFC,0x00,0x00,//迎,1

  0x00,0x00,0x00,0x00,0x00,0x00,0x30,0xC0,0x3F,0xFC,0x20,0xC0,0x67,0xF8,0x64,0xD8,
  0xA7,0xF8,0x24,0xD8,0x22,0x80,0x23,0xC0,0x2E,0x38,0x00,0x00,0xFF,0xFC,0x00,0x00,//使,2

  0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xF8,0x63,0x18,0x63,0x18,0x7F,0xF8,0x63,0x18,
  0x63,0x18,0x7F,0xF8,0x63,0x18,0x63,0x18,0x63,0x78,0x00,0x00,0xFF,0xFC,0x00,0x00,//用,3

  0x00,0x00,0x00,0x00,0x00,0x00,0x20,0xF8,0x7E,0x98,0x58,0x98,0xFE,0xF8,0x36,0x00,
  0x7F,0xF0,0x30,0x30,0x3F,0xF0,0x30,0x30,0x3F,0xF0,0x00,0x00,0xFF,0xFC,0x00,0x00,//智,4

  0x00,0x00,0x00,0x00,0x18,0x60,0x7F,0xF8,0x18,0x60,0x7C,0xF8,0x18,0x60,0x7F,0xF8,
  0x00,0x10,0x3F,0xF0,0x00,0x10,0x7F,0xF0,0x7B,0x78,0x4F,0xC8,0xFF,0xFC,0x00,0x00,//慧,5

  0x00,0x00,0x00,0x00,0x00,0x00,0x6F,0xF8,0x70,0xC0,0x21,0x80,0x03,0xE0,0xF6,0xF8,
  0x3E,0xDC,0x38,0xC0,0x30,0xC0,0x78,0x00,0x4F,0xF8,0x00,0x00,0xFF,0xFC,0x00,0x00,//还,6

  0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x20,0x06,0x38,0x7F,0xE8,0x06,0x60,0x06,0x60,
  0xFF,0xF8,0x06,0x18,0x06,0x18,0x06,0xF0,0x06,0x00,0x00,0x00,0xFF,0xFC,0x00,0x00,//书,7

  // 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x7F,0xE0,0x1C,0x30,0x3F,0xE0,0x07,0xA0,
  // 0x3C,0x78,0x7F,0xF8,0x13,0x20,0x73,0x38,0x4F,0x08,0x00,0x00,0xFF,0xFC,0x00,0x00,//系,8

  // 0x00,0x00,0x00,0x00,0x00,0x00,0x31,0xC0,0x37,0xFC,0x69,0x80,0xFF,0x30,0x36,0x38,
  // 0x67,0xF8,0x7B,0x60,0x03,0x6C,0x1F,0x6C,0xE4,0x38,0x00,0x00,0xFF,0xFC,0x00,0x00,//统,9

 };

const unsigned char hanzi16x16[] = {	
  //列行式 14*16
0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xF8,0x07,0x60,0x03,0x60,0x03,0x6E,0x7F,0xF8,
0x06,0x60,0x06,0x60,0x06,0x60,0x0C,0x60,0x0C,0x60,0x18,0x60,0x00,0x00,0x00,0x00,//开,0

0x00,0x00,0x00,0x00,0x0C,0x30,0x06,0x30,0x0C,0x60,0x0C,0x6C,0x0F,0xCE,0x0F,0xFE,
0x7F,0x00,0x1E,0x00,0x0E,0xFE,0x06,0xCC,0x0F,0xCC,0x38,0x78,0x00,0x00,0x00,0x00,//始,1

0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xFC,0x00,0x60,0x00,0x60,0x18,0xE0,0x39,0xFC,
0x1B,0x6E,0x1E,0x66,0x18,0x60,0x18,0x00,0x7F,0x80,0x00,0xFF,0x00,0x00,0x00,0x00,//还,2

0x00,0x00,0x03,0x00,0x03,0x18,0x03,0x0C,0x03,0xF0,0x0F,0xF0,0x03,0x60,0x03,0x7C,
0x0F,0xFE,0x1B,0x0C,0x03,0x0C,0x03,0x1C,0x03,0x38,0x03,0x00,0x03,0x00,0x00,0x00,//书,3

0x00,0x00,0x00,0x38,0x07,0xB0,0x06,0x60,0x00,0x6C,0x0F,0xFF,0x38,0xCC,0x37,0xE0,
0x01,0x80,0x00,0xFE,0x3F,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,0x03,0x80,0x00,0x00,//学,4

0x00,0x00,0x00,0x00,0x07,0xF0,0x06,0x60,0x06,0x60,0x03,0xC0,0x00,0x1E,0x7F,0xF0,
0x03,0x00,0x03,0xF0,0x06,0x30,0x00,0x30,0x00,0x60,0x00,0x60,0x00,0xE0,0x00,0xC0,//号,5

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x00,
0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x00,0x1C,0x00,0x00,0x00,0x00,0x00,//：,6

0x00,0x00,0x03,0x00,0x03,0x18,0x03,0x0C,0x03,0xF0,0x0F,0xF0,0x03,0x60,0x03,0x7C,
0x0F,0xFE,0x1B,0x0C,0x03,0x0C,0x03,0x1C,0x03,0x38,0x03,0x00,0x03,0x00,0x00,0x00,//书,7

0x00,0x00,0x00,0x00,0x07,0xF0,0x06,0x60,0x06,0x60,0x03,0xC0,0x00,0x1E,0x7F,0xF0,
0x03,0x00,0x03,0xF0,0x06,0x30,0x00,0x30,0x00,0x60,0x00,0x60,0x00,0xE0,0x00,0xC0,//号,8

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x00,
0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x00,0x1C,0x00,0x00,0x00,0x00,0x00,//：,9

0x00,0x00,0x00,0x00,0x00,0x30,0x03,0x7E,0x1E,0xFC,0x0D,0x98,0x0C,0x7E,0x1F,0xF6,
0x1E,0xFE,0x3F,0xF6,0x7D,0xFE,0x01,0xB6,0x01,0xB6,0x03,0x06,0x00,0x0E,0x00,0x00,//确,10

0x00,0x00,0x00,0x00,0x1C,0xC0,0x0E,0x60,0x00,0x60,0x00,0x60,0x1C,0xC0,0x7C,0xC0,
0x18,0xE0,0x18,0xE0,0x1F,0xB0,0x1D,0x98,0x1B,0x1E,0x1E,0x00,0x00,0x00,0x00,0x00,//认,11

0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xFC,0x00,0x60,0x00,0x60,0x18,0xE0,0x39,0xFC,
0x1B,0x6E,0x1E,0x66,0x18,0x60,0x18,0x00,0x7F,0x80,0x00,0xFF,0x00,0x00,0x00,0x00,//还,12

0x00,0x00,0x03,0x00,0x03,0x18,0x03,0x0C,0x03,0xF0,0x0F,0xF0,0x03,0x60,0x03,0x7C,
0x0F,0xFE,0x1B,0x0C,0x03,0x0C,0x03,0x1C,0x03,0x38,0x03,0x00,0x03,0x00,0x00,0x00,//书,13

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//空格 14

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//空格 15

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//空格 16

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//空格 17

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x07,0x80,0x00,0xC0,0x00,0xC0,0x0E,0xF8,
0x06,0xE0,0x0C,0xC0,0x0C,0xC0,0x0C,0xC0,0x0F,0xFF,0x38,0x00,0x00,0x00,0x00,0x00,//正18

0x00,0x00,0x01,0x80,0x01,0x80,0x01,0x80,0x01,0xF0,0x0F,0x00,0x03,0x60,0x06,0x60,
0x0C,0x7C,0x0D,0xF0,0x1C,0x60,0x3C,0x60,0x6C,0xFF,0x0F,0x80,0x0C,0x00,0x00,0x00,//在19

0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xFC,0x00,0x60,0x00,0x60,0x18,0xE0,0x39,0xFC,
0x1B,0x6E,0x1E,0x66,0x18,0x60,0x18,0x00,0x7F,0x80,0x00,0xFF,0x00,0x00,0x00,0x00,//还20

0x00,0x00,0x03,0x00,0x03,0x18,0x03,0x0C,0x03,0xF0,0x0F,0xF0,0x03,0x60,0x03,0x7C,
0x0F,0xFE,0x1B,0x0C,0x03,0x0C,0x03,0x1C,0x03,0x38,0x03,0x00,0x03,0x00,0x00,0x00,//书21

0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xFC,0x00,0x60,0x00,0x60,0x18,0xE0,0x39,0xFC,
0x1B,0x6E,0x1E,0x66,0x18,0x60,0x18,0x00,0x7F,0x80,0x00,0xFF,0x00,0x00,0x00,0x00,//还22

0x00,0x00,0x03,0x00,0x03,0x18,0x03,0x0C,0x03,0xF0,0x0F,0xF0,0x03,0x60,0x03,0x7C,
0x0F,0xFE,0x1B,0x0C,0x03,0x0C,0x03,0x1C,0x03,0x38,0x03,0x00,0x03,0x00,0x00,0x00,//书23

0x00,0x00,0x00,0x00,0x06,0x70,0x0C,0x30,0x0C,0x06,0x1B,0xFC,0x18,0x00,0x3C,0xF0,
0x6C,0x00,0x0C,0xF0,0x0C,0x18,0x0D,0xFC,0x0D,0x98,0x0C,0xFC,0x00,0x00,0x00,0x00,//信24

0x00,0x00,0x01,0x80,0x03,0x00,0x06,0x60,0x07,0xF0,0x07,0xB0,0x07,0x60,0x07,0xE0,
0x06,0xE0,0x07,0xE0,0x01,0xCF,0x30,0xC0,0x36,0x18,0x33,0x1C,0x01,0xF8,0x00,0x00,//息25
};

const unsigned char hanzi32x32[] = {

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x3C,0x00,0x00,
0x00,0x38,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x71,0xC0,0x00,0x00,0x6F,0x80,0x70,
0x00,0xFC,0x3F,0xFC,0x01,0xDC,0x1C,0x3C,0x01,0x9C,0x18,0x38,0x00,0x1F,0xD8,0x30,
0x00,0x7C,0x1C,0x70,0x1F,0xD8,0x1F,0xF0,0x0E,0x3F,0x8E,0x00,0x00,0x3B,0xC0,0x00,
0x00,0x71,0xC0,0x00,0x00,0x60,0x1E,0x00,0x00,0xD9,0xFF,0x00,0x01,0x9F,0x0F,0x80,
0x07,0x0C,0x07,0x00,0x00,0x0C,0x07,0x00,0x00,0x0D,0xF7,0x00,0x00,0x0F,0x07,0x00,
0x00,0x0C,0x07,0x00,0x00,0x0C,0x07,0x00,0x00,0x0C,0x37,0x00,0x00,0x0F,0xFF,0x00,
0x00,0x0C,0x0E,0x00,0x00,0x0C,0x0E,0x00,0x00,0x00,0x0E,0x00,0x00,0x00,0x00,0x00,//智,0

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0xE0,0x00,
0x00,0x70,0xF0,0x00,0x00,0xF0,0x60,0x00,0x00,0xE0,0x63,0x80,0x00,0xC0,0x67,0x80,
0x01,0xDC,0x7E,0x00,0x03,0x8E,0x78,0x00,0x03,0x0F,0x60,0x60,0x06,0x3F,0x60,0x60,
0x0F,0xE7,0x60,0x60,0x0F,0x00,0x79,0xE0,0x00,0x18,0x3F,0xE0,0x03,0xFC,0x00,0x00,
0x03,0x1C,0xE0,0x00,0x03,0x1C,0x73,0x80,0x03,0x7C,0x63,0x80,0x03,0xFC,0x67,0x80,
0x03,0x1C,0x7E,0x00,0x03,0x1C,0x78,0x00,0x03,0xFC,0x60,0x00,0x07,0x1C,0x60,0x18,
0x07,0x1C,0x60,0x18,0x06,0x1C,0x60,0x18,0x0E,0x7C,0x70,0x3C,0x0E,0x3C,0x3F,0xFC,
0x0C,0x1C,0x1F,0xF0,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//能,1

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x03,0x80,0x01,0xF0,0x03,0xC0,0xFF,0xF0,0x01,0xC7,0xFC,0x00,
0x00,0xC0,0x1C,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x78,0x00,0x00,0x00,0x70,0x00,
0x00,0x00,0xF0,0x00,0x03,0xC0,0xF0,0x00,0x1F,0xC1,0xF3,0x00,0x03,0x83,0xB1,0xE0,
0x03,0x87,0x30,0xF0,0x03,0x8E,0x30,0x78,0x03,0x1C,0x30,0x38,0x03,0xB0,0x70,0x00,
0x01,0x80,0x70,0x00,0x01,0x80,0x70,0x00,0x01,0x80,0x70,0x00,0x1F,0xE0,0x70,0x00,
0x3C,0x3E,0x30,0x00,0x00,0x07,0xF0,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x3F,0xFC,
0x00,0x00,0x07,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//还,2

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0E,0x00,0x00,0x00,0x0F,0x00,0x00,
0x00,0x0F,0x00,0x00,0x00,0x0F,0x03,0xC0,0x00,0x07,0x01,0xE0,0x00,0x07,0x00,0xF0,
0x00,0x07,0x38,0x70,0x00,0x07,0xFE,0x00,0x01,0xFF,0x1E,0x00,0x00,0xE7,0x1C,0x00,
0x00,0x07,0x1C,0x00,0x00,0x07,0x38,0x00,0x00,0x07,0x38,0x00,0x00,0x07,0x3F,0xE0,
0x00,0x07,0xFC,0xF0,0x0F,0xFF,0x00,0xF0,0x0F,0x87,0x00,0xF0,0x00,0x07,0x00,0xE0,
0x00,0x07,0x00,0xE0,0x00,0x07,0x00,0xE0,0x00,0x07,0x01,0xC0,0x00,0x07,0x1F,0xC0,
0x00,0x07,0x0F,0xC0,0x00,0x06,0x07,0x80,0x00,0x06,0x03,0x00,0x00,0x06,0x00,0x00,
0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x00,//书,3

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0E,0x00,
0x00,0x00,0x0E,0x00,0x01,0xC0,0x0E,0x00,0x01,0xE0,0x0E,0x38,0x00,0xF1,0xCE,0x38,
0x00,0x70,0xCE,0x70,0x00,0x00,0xCF,0xF0,0x00,0x01,0xFF,0x60,0x00,0x7D,0xF0,0x60,
0x03,0xF9,0x80,0x00,0x0F,0x80,0x00,0xE0,0x00,0x38,0x07,0xE0,0x00,0x3C,0x7F,0x00,
0x06,0x38,0x18,0x00,0x07,0x30,0x38,0x00,0x03,0xB0,0x38,0x78,0x00,0x60,0x33,0xFE,
0x00,0x7C,0x7E,0x1C,0x00,0x7F,0xE7,0x1C,0x03,0xC6,0x77,0x1C,0x3F,0x06,0x67,0x1C,
0x1E,0x06,0x67,0x1C,0x00,0x06,0x67,0x1C,0x00,0x06,0x66,0x1C,0x00,0x06,0x00,0xFC,
0x00,0x00,0x00,0x78,0x00,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,//端4

};	


const unsigned char u16ftflogo[]={
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x80,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x80,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x80,0xBF,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0xFF,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0xF0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0xE6,0xFF,0xFF,0xFF,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0xC0,0xE7,0xFF,0xFF,0xFF,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0xF0,0xE7,0xFF,0xFF,0x1F,0x00,0x7C,0x00,0x00,0x00,0x00,0x3E,0x3E,0x3E,0xFC,0x00,
  0xF0,0xE7,0xFF,0xFF,0xFF,0x01,0x7E,0x1F,0xFE,0xFF,0xFF,0xFF,0x3F,0x3E,0xFC,0x00,
  0xF8,0xE7,0xFF,0xFF,0xFF,0x01,0x7E,0x3E,0xFF,0xFF,0xFF,0xFF,0x3F,0xFE,0xFF,0x0F,
  0xF8,0xE7,0xFF,0xFF,0xFF,0xF1,0xFF,0xFF,0x1F,0xF8,0xCF,0xE7,0x3F,0xFE,0xFF,0x0F,
  0xF8,0xE7,0xDF,0xFF,0xFE,0xF1,0xFF,0xFF,0x1F,0xF8,0xFF,0xDF,0xBF,0x7F,0xFC,0x00,
  0xF8,0xE7,0x1F,0x00,0xFE,0x01,0xDE,0x67,0xFF,0xFF,0xF7,0xFF,0xBE,0xFF,0xFF,0x07,
  0xF8,0xE7,0x1F,0x00,0xFE,0x01,0xDF,0x7F,0xFF,0xFF,0xF7,0xFF,0x3F,0xFE,0xFF,0x0F,
  0xF8,0xE7,0x1F,0x00,0xFE,0x01,0xDF,0x7F,0xDF,0xFB,0xFF,0xFF,0x3F,0xBE,0xCF,0x0F,
  0xF8,0xE7,0x1F,0x00,0xFE,0x81,0xCF,0x1F,0xDF,0x7B,0xFF,0xDF,0x3F,0x7E,0xFF,0x07,
  0xF8,0xE7,0x1F,0x00,0xFE,0xC1,0xCF,0x0F,0xDF,0x7B,0xFF,0xFF,0xFF,0x7F,0xFE,0x03,
  0xF8,0xE7,0x1F,0x00,0xFE,0xC1,0xF7,0x07,0xDF,0x7B,0xFF,0xFF,0xFF,0x3F,0xFE,0x01,
  0xF8,0xE7,0x1F,0x00,0xFE,0xE1,0xFF,0x07,0xDF,0x7B,0xFF,0xFF,0x3E,0x3E,0xFE,0x00,
  0xF8,0xE7,0x1F,0x00,0xFE,0xE1,0xFF,0x07,0xFF,0xFF,0xFF,0x1F,0x3E,0x3E,0xFF,0x03,
  0xF8,0xE7,0xFF,0xFF,0xFF,0xF1,0xCF,0xFF,0xFF,0xFF,0xF7,0x1F,0x3E,0xFF,0xFF,0x0F,
  0xF8,0xE7,0xFF,0xFF,0xFF,0xF1,0x81,0xFF,0x00,0x78,0xF8,0x1F,0x3E,0xDF,0xCF,0x0F,
  0xF8,0xE7,0xFF,0xFF,0xFF,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0xF8,0xE7,0xFF,0xFF,0xFF,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0xF8,0xE7,0xFF,0xFF,0xFF,0x01,0x70,0x00,0xC0,0x81,0x63,0x03,0x00,0xE0,0xCF,0x1B,
  0xF8,0xE7,0xFF,0xFF,0xFF,0x71,0xFC,0x3D,0xF7,0xEF,0xFF,0x9F,0xBF,0xFF,0xFF,0x3F,
  0xF8,0x07,0x00,0x00,0xFE,0x71,0xFE,0x7F,0x7F,0xFE,0xDF,0x9D,0xFF,0xBF,0xF7,0x0E,
  0xF8,0xFF,0xFF,0x3F,0xFE,0x71,0x8E,0xFF,0xBF,0x7F,0xDC,0x9D,0xFF,0xFD,0xF3,0x0E,
  0xF8,0xFF,0xFF,0x3F,0xFE,0x71,0x8E,0xFF,0xBF,0x7F,0xDC,0x9D,0xFF,0xFD,0xF3,0x0E,
  0xF8,0xFF,0xFF,0x3F,0xFE,0x71,0xDE,0xFF,0x7F,0xFE,0xDF,0xBD,0xFF,0x3F,0xF4,0x0E,
  0xF0,0xFF,0xFF,0x3F,0xFE,0xF0,0xFF,0x3D,0xF7,0xEF,0xEF,0xFF,0xBB,0xFF,0x7F,0x3F,
  0xE0,0xFF,0xFF,0x3F,0x7E,0xE0,0x63,0x08,0x80,0x81,0x63,0xF3,0x18,0xE6,0x1F,0x3B,
  0x80,0xFF,0xFF,0x3F,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
};


/*--------------------------------------------------------------*/
/****************显示图片（从单片机的DATA区）********************************/	
void TFTSPI_Show_pic()
{
  unsigned int i,j,k=0;
  
  /*	TFTSPI_Write_Cmd(0x2a);                //Horizontal Address Start Position
  TFTSPI_Write_Byte(0x00);
  TFTSPI_Write_Byte(0x00);
  TFTSPI_Write_Byte(0x00);
  TFTSPI_Write_Byte(0xa2);		       //0--127水平地址结束  a8
  TFTSPI_Write_Cmd(0x2b);                     //Vertival Address end Position
  TFTSPI_Write_Byte(0x00);
  TFTSPI_Write_Byte(0x00);
  TFTSPI_Write_Byte(0x00);
  TFTSPI_Write_Byte(0x84);		       //0--159，垂直地址结  b3
  TFTSPI_Write_Cmd(0x2c);
  */	
  //TFTSPI_Set_Pos(0,0,TFT18W,TFT18H);
  TFTSPI_Set_Pos(0,0,TFT18W-1,TFT18H);
  for(i=0;i<TFT18H;i++)
  { 
    for(j=0;j<TFT18W;j++)
    {			
      //TFTSPI_Write_Word(((uint16_t)MYPIC[k])<<8|MYPIC[k+1]);
      TFTSPI_Write_Word(((uint16_t)u16ftflogo[k])<<8|u16ftflogo[k+1]);
      //TFTSPI_Write_Word(ftflogo[k]<<8|ftflogo[k+1]);
      k++; k++;
    }
  }    
}
/*--------------------------------------------------------------*/
//液晶字符输出(6*8字体)
//x: 0 - 20	(行)
//y: 0 -19	(列)
void TFTSPI_P6X8(uint8_t x, uint8_t y, uint8_t c_dat,uint16_t word_color,uint16_t back_color)
{
  uint8_t i,j;
  
  TFTSPI_Set_Pos(x*6,y*8,(x+1)*6-1,(y+1)*8-1);			//定位字符显示区域
  
  for(j=0; j<8; j++)
  {
    for(i=0; i<6; i++)
    {
      if((Font_code8[c_dat-32][i]) & (0x01<<j))
        TFTSPI_Write_Word(word_color);
      else
        TFTSPI_Write_Word(back_color);
    }
  }
}

/*--------------------------------------------------------------*/
//液晶字符输出(8*16字体)
//x: 0 -15   (行)
//y: 0 -9  	 (列)
void TFTSPI_P8X16(uint8_t x, uint8_t y, uint8_t c_dat,uint16_t word_color,uint16_t back_color)
{
  uint8_t i,j;
  
  TFTSPI_Set_Pos(x*8,y*16,(x+1)*8-1,(y+1)*16-1);			//定位字符显示区域
  
  for(j=0; j <16; j++)
  {
    for(i=0; i<8; i++)
    {
      if((Font_code16[c_dat-32][j]) & (0x01<<i))
        TFTSPI_Write_Word(word_color);
      else
        TFTSPI_Write_Word(back_color);
    }
  }
}

/*--------------------------------------------------------------*/
//液晶字符串输出(8*16字体)
//x: 0 - 15 (行)
//y: 0 - 7  (列)
void TFTSPI_P8X16Str(uint8_t x, uint8_t y, char *s_dat,uint16_t word_color,uint16_t back_color)
{
  while(*s_dat) TFTSPI_P8X16(x++, y, *s_dat++,word_color,back_color);
}

//液晶字符输出(16*12字体)
//x: 0 - 7	(行)
//y: 0 -12	(列)
void TFTSPI_P16x12Str(unsigned char x,unsigned char y,uint8_t *s_dat,uint16_t word_color,uint16_t back_color)
{
  unsigned char wm=0,ii = 0,i,j;
  unsigned int adder=1; 

  while(hanzi_Idx[wm]!=0)
  {
    printf("hanzi_Idx[%d] = %lx\n",wm,hanzi_Idx[wm]);

    printf("s_dat[%d] = %lx\n",wm,s_dat[wm++]);
  }

  // while(1);

  while(s_dat[ii] != '\0')
  {
    wm = 0;
    adder = 1;
    printf("数据:%d\n",s_dat[ii]);
    while(hanzi_Idx[wm] > 0)
    {
      if(hanzi_Idx[wm] == s_dat[ii])
      {
        // printf("二次比较数据s_dat:%d\n",s_dat[ii+1]);
        // printf("二次比较数据hanzi_idx:%d\n",hanzi_Idx[wm+1]);
        if(hanzi_Idx[wm + 1] == s_dat[ii + 1])
        {
          adder = wm * 12;
          // printf("正常汉字：hanzi_Idx:%d\n",hanzi_Idx[wm]);
          // printf("adder:%d\n",adder);
          break;
        }
      }
      wm += 2;			
    }
    // printf("%d\n",ii);
    hi_udelay(1000000);
    
    if(adder != 1)// 显示汉字					
    {
      TFTSPI_Set_Pos(x*16,y*12,(x+1)*16-1,(y+1)*12-1);			//定位字符显示区域 			
      for(j=0; j <24; j++)
      {
        for(i=0; i<8; i++)
        {
          if((hanzi[adder]) &  (0x80>>i))
            TFTSPI_Write_Word(word_color);
          else
            TFTSPI_Write_Word(back_color);

          // printf("%d\n",hanzi[adder]);  
        }
        adder += 1;		 	
      } 					
    }
    else			  //显示空白字符			
    {
      printf("空白！\n");
    }
    //y+=1;//左右方向
    x+=1;//上下方向  		  	
    ii += 2;
  }
  
}
//液晶字符输出(16*16字体)
//x: 0 - 7	(行)
//y: 0 -9	(列)
void TFTSPI_P16x16Str(unsigned char x,unsigned char y,uint8_t *s_dat,uint8_t dat_size,uint8_t begin,uint16_t word_color,uint16_t back_color)
{
  unsigned char wm=0,ii = 0,i,j;
  unsigned int adder=1; 
  uint8_t *compare_dat;
  uint8_t offset = 0;

  switch (begin)
  {
  case 0: compare_dat = hanzi_begin_Idx;offset = 0;
    break;
  
  case 1: compare_dat = hanzi_stunum_Idx;offset = 8;
    break;

  case 2: compare_dat = hanzi_boknumIdx;offset = 14;
    break;

  case 3: compare_dat = hanzi_endIdx;offset = 20;
    break;

  case 4: compare_dat = hanzi_blankIdx;offset = 28;
    break;
  
  case 5: compare_dat = hanzi_duringIdx;offset = 36;
    break;

  case 6: compare_dat =  hanzi_msgIdx; offset = 44;
    break;
  
  default:
    break;
  }

  while(ii != dat_size)
  {
    adder = 1;
    while(compare_dat[wm] > 127)
    {
      if(compare_dat[wm] == s_dat[ii])
      {
        if(compare_dat[wm + 1] == s_dat[ii + 1])
        {
          
          adder = (wm+offset) * 16;
          break;
        }
      }
      wm += 2;			
    }
    
    
    if(adder != 1)// 显示汉字					
    {
      TFTSPI_Set_Pos(x*16,y*16,(x+1)*16-1,(y+1)*16-1);			//定位字符显示区域 			
      for(j=0; j <32; j++)
      {
        for(i=0; i<8; i++)
        {
          if((hanzi16x16[adder]) &  (0x80>>i))
            TFTSPI_Write_Word(word_color);
          else
            TFTSPI_Write_Word(back_color);
        }
        adder += 1;		 	
      } 					
    }
    else			  //显示空白字符			
    {}
    //y+=1;//左右方向
    x+=1;//上下方向  		  	
    ii += 2;
  }
}

/*--------------------------------------------------------------*/
//液晶字符串输出(6*8字体)
//x: 0 - 20 (行)
//y: 0 -19 (列)
void TFTSPI_P6X8Str(uint8_t x, uint8_t y, uint8_t *s_dat,uint16_t word_color,uint16_t back_color)
{
  while(*s_dat) TFTSPI_P6X8(x++, y, *s_dat++,word_color,back_color);
}

/*--------------------------------------------------------------*/ 
//定位输出数字
//x: 0 - 20  (行)
//y: 0 - 19 (列)
//num: 0 - 65535	要显示的数字
//num_bit: 0 - 5	数字的位数
void TFTSPI_P6X8NUM(uint8_t x, uint8_t y, uint16_t num, uint8_t num_bit,uint16_t word_color,uint16_t back_color)
{
  char i;
  //uint8_t ii;
  uint8_t dat[6];
  for(i = 0; i < 6; i++) dat[i] = 0; i = 0;	//初始化数据
  while(num / 10)								//拆位
  {
    dat[i] = num % 10 + 48;						        ////转换成asc码
    TFTSPI_P6X8(x + num_bit - i - 1, y, ' ',word_color,back_color);		//清显示区域
    TFTSPI_P6X8(x + num_bit - i - 1, y, dat[i],word_color,back_color);		//输出数值
    num /= 10; i++;		
  }
}
/*--------------------------------------------------------------*/

/*--------------------------------------------------------------*/
//液晶字符输出(8*8字体)
//x: 0 - 15	(行)
//y: 0 -19	(列)
void TFTSPI_P8X8(uint8_t x, uint8_t y, uint8_t c_dat,uint16_t word_color,uint16_t back_color)
{
  uint8_t i,j;
  
  TFTSPI_Set_Pos(x*8,y*8,(x+1)*8-1,(y+1)*8-1);			//定位字符显示区域
  
  for(j=0; j<8; j++)
  {
    TFTSPI_Write_Word(back_color);
    for(i=0; i<6; i++)
    {
      if((Font_code8[c_dat-32][i]) & (0x01<<j))
        TFTSPI_Write_Word(word_color);
      else
        TFTSPI_Write_Word(back_color);
    }
    TFTSPI_Write_Word(back_color);
  }
}

/*--------------------------------------------------------------*/
//液晶字符串输出(8*8字体)
//x: 0 - 15 (行)
//y: 0 -19 (列)
void TFTSPI_P8X8Str(uint8_t x, uint8_t y, uint8_t *s_dat,uint16_t word_color,uint16_t back_color)
{
  while(*s_dat) TFTSPI_P8X8(x++, y, *s_dat++,word_color,back_color);
}

//液晶字符输出(32*32字体)
//x: 0 - 7	(行)
//y: 0 -9	(列)
void TFTSPI_P32x32Str(unsigned char x,unsigned char y,uint8_t *s_dat,uint8_t dat_size,uint16_t word_color,uint16_t back_color)
{
  unsigned char wm=0,ii = 0,i,j;
  unsigned int adder=1; 

  while(ii != dat_size)
  {
    wm = 0;
    adder = 1;
    while(hanzi_Idx[wm] > 127)
    {
      if(hanzi_Idx[wm] == s_dat[ii])
      {
        if(hanzi_Idx[wm + 1] == s_dat[ii + 1])
        {
          adder = wm * 64;
          break;
        }
      }
      wm += 2;			
    }
    

    if(adder != 1)// 显示汉字					
    {
      TFTSPI_Set_Pos(x*32,y*32,(x+1)*32-1,(y+1)*32-1);			//定位字符显示区域 			
      for(j=0; j <128; j++)
      {
        for(i=0; i<8; i++)
        {
          if((hanzi32x32[adder]) &  (0x80>>i))
            TFTSPI_Write_Word(word_color);
          else
            TFTSPI_Write_Word(back_color);
        }
        adder += 1;		 	
      } 					
    }
    else			  //显示空白字符			
    {}
    //y+=1;//左右方向
    x+=1;//上下方向  		  	
    ii += 2;
  }
}

/*--------------------------------------------------------------*/ 
//定位输出数字
//x: 0 - 15  (行)
//y: 0 - 19 (列)
//num: 0 - 65535	要显示的数字
//num_bit: 0 - 5	数字的位数
void TFTSPI_P8X8NUM(uint8_t x, uint8_t y, uint16_t num, uint8_t num_bit,uint16_t word_color,uint16_t back_color)
{
  char i;
  uint8_t ii = num_bit;
  uint8_t dat[6];
  for(i = 0; i < 6; i++) dat[i] = 0; i = 0;	//初始化数据
  while(ii--)								//拆位
  {
    dat[i] = num % 10 + 48;						//转换成asc码
    TFTSPI_P8X8(x + num_bit - i - 1, y, ' ',word_color,back_color);	//清除当前要显示的位置				//清显示区域
    TFTSPI_P8X8(x + num_bit - i - 1, y, dat[i],word_color,back_color);	//显示				//输出数值
    num /= 10; i++;		
  }
}

uint8_t ColumnarMAX=5;
uint8_t Start_X,Start_Y;
uint8_t AreaW,AreaH;
uint8_t Colum_W,Colum_H;
uint16_t BColor,FColor;

//  起始点x,起始点y,频谱宽度，高度，前景色，背景色
void ColumnarSetting(uint8_t x,uint8_t y, uint8_t w,uint8_t h,uint16_t fclolr,uint16_t bcolor)
{
  Start_X=x;
  Start_Y=y;
  
  AreaW = w;  //AreaW = Colum_W*ColumnarMAX*2;
  AreaH = h;  //AreaY = Colum_H;
  
  Colum_W = AreaW/(ColumnarMAX*2);     //TFT18W/40;
  Colum_H = AreaH;                     //TFT18H/2;
  
  BColor = bcolor;
  FColor = fclolr;
}

void DrawingColumnar(uint8_t t,uint8_t duty,uint8_t cl)
{
  unsigned int i,j;  
  
  //上半截
  TFTSPI_Set_Pos(Start_X+Colum_W*t,Start_Y,Start_X+Colum_W*(t+1),(uint8_t)(Start_Y+Colum_H*(1-duty*0.01)));
  for(i=0;i<Colum_W+2;i++)      //160
  {
    for(j=0;j<Colum_H+2;j++)
    {
      TFTSPI_Write_Word(BColor);
    }
  }
  //下半截 
  TFTSPI_Set_Pos(Start_X+Colum_W*t,(uint8_t)(Start_Y+Colum_H*(1-duty*0.01)),Start_X+Colum_W*(t+1),Start_Y+Colum_H);
  for(i=0;i<Colum_W+2;i++)      //160
  {
    for(j=0;j<Colum_H+2;j++)
    {
      TFTSPI_Write_Word(FColor);
    }
  }
  
  if(cl)
  {
    //补充空隙
    TFTSPI_Set_Pos(Start_X+Colum_W*(t+1)+1,Start_Y,Start_X+Colum_W*(t+2),Start_Y+Colum_H);
    for(i=0;i<Colum_W;i++)      //160
    {
      for(j=0;j<Colum_H+2;j++)
      {
        TFTSPI_Write_Word(BColor);
      }
    }
  } 
}

/****************显示图片（从单片机的DATA区）********************************/	
void TFTSPI_Show_Pic2(uint8_t xs,uint8_t ys,uint8_t w,uint8_t h,const uint8_t *ppic) 
{
    unsigned int i;	
    TFTSPI_Set_Pos(xs,ys,xs+w-1,ys+h);
    for(i=0;i<w*h;i++)
    { 			
        TFTSPI_Write_Word((ppic[2*i]<<8)+(ppic[2*i+1])); //高位在前，且两个数据组合成一个16位数据表示像素值  
    }
 }



// void TFTSPI_Show_Logo(uint8_t xs,uint8_t ys)
// {
//     TFTSPI_Show_Pic2(xs,ys,160,54,gImage_lo);       //80,gImage_ftflogo);     //
// }

void DrawSpectrum(void)
{
  DrawingColumnar( 0,rand()%101,1);       //画柱形 
  DrawingColumnar( 2,rand()%101,1);       //画柱形 
  DrawingColumnar( 4,rand()%101,1);       //画柱形 
  DrawingColumnar( 6,rand()%101,1);       //画柱形
  DrawingColumnar( 8,rand()%101,1);       //画柱形
  DrawingColumnar(10,rand()%101,0);       //画柱形
}
void TFTSPI_Test(void)
{ 
  
  TFTSPI_Init(0);        //LCD初始化  0:横屏  1：竖屏
  TFTSPI_CLS(u16WHITE);   //蓝色屏幕	
//   TFTSPI_Show_Logo(0,37);//显示龙邱LOG  
  // TFTSPI_P16x16Str(0,0,"北京龙邱智能科技",u16RED,u16BLUE);		//字符串显示
  TFTSPI_P8X16Str(0,1,"Long Qiu i.s.t.",u16WHITE,u16BLACK);		//字符串显示  
  char txt[32];
  float count = 1;
  while(1)
  {
      sprintf(txt, "variate: %5.1f", count);                    //将变量填充到字符串的对应位置，并将字符串存放到txt[]中
      TFTSPI_P8X16Str(0, 6, txt, u16RED, u16BLUE);              //将txt中 内容显示出来
      delayms(300);
      count *= 1.1;      
   }
}//TEST()